package com.luxk.db.server;

public interface ThreadPool {

	public void setMinThreads(int cnt);
	
	public void setMaxThreads(int cnt);
	
	public void suspendAll();
	
	public void suspend(int threadId);
	
	public void resumeAll();
	
	public void resume(int threadId);
	
	public ThreadContext getIdleThread();
	
	public void releaseThread(ThreadContext ctx);

	public ThreadContext getThread(int threadId);
	
	public ThreadContext[] getThread(String name);
	
	public void sendMessage(int threadId, Object msg);

}
